<template>
	<view class="container">
		<view>
			<view class="title">
				{{details.title}}
			</view>
			<view class="introduce">
				<text style="margin-right: 20upx;">来源：{{details.createUser}}</text>
				<text>{{details.publishTime}}</text>
			</view>
			<view class="activity_text" v-html="content">
				<!-- <uParse :content="details.content" @preview="preview" @navigate="navigate" /> -->
			</view>
			
		</view>
	</view>
</template>

<script>
	import uParse from '@/components/gaoyia-parse/parse.vue'
	export default {
		data() {
			return {
				details:{},
				content:""
			}
		},
		components: {
			uParse
		},
		onLoad(options) {
			if (options && options.data) {
				this.details = JSON.parse(options.data)
				this.content = this.details.content.replace(/\/\t/g,"").replace(/\n/g,"").replace(/\n\r/g,"<br/>")
			}
		},
		methods: {

		}
	}
</script>

<style>
	page{
		background-color: #FBFBFB;
	}
	
	.container {
		width: 100%;
		background-color: #FBFBFB;
		overflow: hidden;
		padding: 32upx;
	}

	.title {
		font-size: 36upx;
		margin-bottom: 16upx;
		font-weight: 600;
	}
	
	.activity_text {
		padding: 0upx;
	}

	.introduce {
		display: flex;
		font-size: 26upx;
		color: #909399;
		margin-bottom: 12upx;
	}

	.img_box {
		width: 100%;
		text-align: center;
		border-radius: 10upx;
	}

	.otherText {
		text-align: center;
		width: 100%;
		line-height: 60upx;
	}
</style>
